{extend name="common@base" /}
{block name="content"}
<style>
  select, input {
    margin: 0 10px;
  }
</style>
<section class="content">
  <div class="row">
    <div class="col-xs-12">
      <div id="users" class="box box-primary" style="word-break:break-all; word-wrap:break-all;">
        <div class="box-header with-border">
           <div class="box-title">考生列表</div>
        </div>
        <div class="box-body"></div>

        <table class="table">
          <tr>
            <th width="5%">试卷ID</th>
            <th width="15%">一卡通和姓名</th>
            <th width="30%">考题</th>
            <th width="30%">答案</th>
            <th width="5%">进度</th>
            <th width="5%">正确数量</th>
            <th width="5%">得分</th>
            <th width="5%">操作</th>
          </tr>
          {foreach $papers as $k=>$row}
          <tr>
            <td>{$row.id}</td>
            <td>{$row.username}{$row.realname}</td>
            <td>{$row.questions}</td>
            <td>
              {:implode($answers[$k],',')}
            </td>
            <td>{$row.cursor}</td>
            <td>{$row.right_count}</td>
            <td>{$row.score}</td>
            <td><a href="{:url('viewPaper',['id'=>$row.id])}" class="btn btn-default btn-xs">查看考卷</a></td>
          </tr>
          {/foreach}
        </table>
      </div>
    </div>
  </div>
</section>
{/block}
{block name="page_script"}
<script>
  require(["layer_config", "ajaxForm"], function (layer) {

  });

</script>
{/block}





